package com.stx.bms.dao;

import com.stx.bms.entity.Blog;
import com.stx.bms.util.JDBCUtil;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public interface BlogDAO {

    //新增
    public void add(String title, String content, int userId, String imgUrl);

    //删除
    public void delete(int id);
    //修改
    public void update(int id, String newTitle, String newContent);

    //查看
    public List<Blog> viewAll();

    public Blog viewById(int id);

}